<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>

    </h:head>
    <h:body>
        <ui:composition template="../Master/masters.xhtml">
            <ui:define name="content">
                <div class="complaintsTitle"><h:panelGroup rendered="#{complaints.complaintStatus==0}"><span style="color: red;font-weight: bold;font-size: 12px">Wait!&nbsp;&nbsp;</span>#{complaints.complaintTitle} <span style="font-size: 12px">(<h:outputText value="#{complaints.complaintCreateDate}" >
                                <f:convertDateTime pattern="dd/MM/yyyy HH:mm" />
                            </h:outputText>)</span></h:panelGroup>
                    <h:panelGroup rendered="#{complaints.complaintStatus==1}"><span style="color: green;font-weight: bold;font-size: 12px">Done&nbsp;&nbsp;</span>#{complaints.complaintTitle} <span style="font-size: 12px">(<h:outputText  value="#{complaints.complaintCreateDate}" >
                                <f:convertDateTime pattern="dd/MM/yyyy HH:mm" />
                            </h:outputText>)</span></h:panelGroup>

                </div>
                <div class="complaintContent"><h:outputText value="#{complaints.complaintContent}" escape="false"></h:outputText></div>
                <div class="complaintMember" style="margin-bottom: 20px">Department: <span>#{complaints.membersID.departmentID.departmentName}</span>
                    <br/>Name: <label>#{complaints.membersID.membersName}</label>
                    <br/>Positions: #{complaints.membersID.membersPosition}</div>
             
                <div class="templatemo_h_line_2" style="clear: both">
                </div>
                <h:panelGroup rendered="#{complaintsDetails.solutions!=null}"> <h1>Solution</h1></h:panelGroup>
                <ui:repeat var="solution" value="#{complaintsDetails.solutions}">
                    <div class="complaintContent"><h:outputText escape="false" value="#{solution.solutionContent}"></h:outputText> <span style="font-size: 10px">(<h:outputText value="#{solution.solutionCreateDate}" >
                                <f:convertDateTime pattern="dd/MM/yyyy HH:mm" />
                            </h:outputText>)</span></div>
                    <div class="complaintMember">Department: <span>#{solution.membersID.departmentID.departmentName}</span>
                        <br/>Name: <label>#{solution.membersID.membersName}</label>
                        <br/>Positions: #{solution.membersID.membersPosition}</div>
                    <div class="cleaner" style="height: 20px"></div>
                </ui:repeat>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

